<%@page import="com.dfhc.util.CryptoHelper"%>
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />

<!-- 全局js 和css包 -->
<%@ include file="/jsp/include/web/new/global.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>执行sql</title>
<script type="text/javascript">
	function upload(){  //直接点到修改页面
		var sqlFileName = $("#reportTemplateFileName").val();
		if(isStrEmpty(sqlFileName)){
			alert("请选择sql文件名!");
			return;
		}
		
		uploadFile('<%=request.getContextPath()%><%=CryptoHelper.encryptUrl(request,"/pubController/doExecsqlpage")%>','reportTemplateFile','<%=request.getContextPath()%><%=CryptoHelper.encryptUrl(request,"/pubController/execsqlpage")%>')
	}	
</script>
<%@ taglib uri="/dfhc" prefix="dfhc" %>
</head>
<body>
<article class="page-container">
	<form action="" method="post" class="form form-horizontal" id="form-messagerecipients-add">
		<dfhc:div templateId="h_ui_div_row_cl">
			<dfhc:title templateId="h_ui_label_title"><dfhc:span templateId="h_ui_not_null_span"></dfhc:span>sql文件(UTF-8格式):</dfhc:title>
			<dfhc:div templateId="h_ui_div_fromcontrol">
			    <dfhc:span templateId="h_ui_file" inputtextid="reportTemplateFileName" filectrlid="reportTemplateFile" ></dfhc:span>							
			</dfhc:div>
		</dfhc:div>

		<dfhc:div templateId="h_ui_div_row_cl">
			<dfhc:div templateId="h_ui_div_pop_up_button">
				<dfhc:button templateId="h_ui_exec_button" onclick="javascript:upload();"  />
			</dfhc:div>
		</dfhc:div>
	</form>
</article>

</body>
</html>